<div class="row">
    <div class="col-xs-12">
        <g:form id="form" useToken="true" url="${url}" class="form-horizontal" role="form">
            <input type="hidden" class="input-value" name="id"  value="${photoPaper?.id}"/>
            <div class="form-group  message alert">

            </div>
            <div class="form-group form-field field-name">
                <label class="col-sm-3 control-label no-padding-right" for="form-name"> 纸张名称: </label>
                <div class="col-xs-12 col-sm-4">
                    <g:textField  name="name" id="form-name" value="${photoPaper?.name}" placeholder="输入纸张名称" class="width-100" />
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline fieldMsg">  </div>
            </div>
            <div class="form-group form-field field-origin">
                <label class="col-sm-3 control-label no-padding-right" for="form-origin"> 纸张产地: </label>
                <div class="col-xs-12 col-sm-4">
                    <g:textField  name="origin" id="form-origin" value="${photoPaper?.origin}" placeholder="输入纸张产地" class="width-100" />
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline fieldMsg">  </div>
            </div>

            <div class="form-group form-field field-description">
                <label class="col-sm-3 control-label no-padding-right" for="form-description"> 纸张描述 </label>
                <div class="col-xs-12 col-sm-4">
                    <g:textField  name="description" id="form-description" value="${photoPaper?.description}" placeholder="纸张描述" class="width-100" />
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline fieldMsg">  </div>
            </div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit" formaction="save">
                        <i class="icon-ok bigger-110"></i>
                        提交
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="icon-undo bigger-110"></i>
                        重置
                    </button>
                </div>
            </div>
        </g:form>
    </div>
</div>
<r:require module="mng_form"></r:require>
<r:script>

        (function($) {
            $(".selectPicker").selectPicker({
                width: 700, height: 500
            });
            $(".chosen-select").chosen();
            $('#form').ajaxForm({
                beforeSubmit: function() {
                    $("#form").jqFormClearErr();
                    $("#form").find("input[type=submit]").attr("disabled", true);
                },
                success: function(response) {
                    $("#form").find("input[type=submit]").attr("disabled", false);
                    $("#form").jqFormResponse({
                        response: response,
                        successUri: "<g:createLink />"
                    });

                },
                error: function() {
                    $("#form").find("input[type=submit]").attr("disabled", false);
                }
            });
        }(jQuery));


</r:script>